package com.twq.rules

/**
 * Created by tangweiqun on 2017/12/4.
 */
class Dollar {}

object Dollar {
  implicit def dollarToEuro(x: Dollar): Euro = {
    println("dollarToEuro")
    new Euro
  }
}

class Euro {
  def make(): Unit = {
    println("make Euro")
  }
}

object Euro {

}


object RulesOnConversions {
  def main(args: Array[String]): Unit = {

    val dollar = new Dollar
    dollar.make()

    showEuro(dollar)
  }

  def showEuro(euro: Euro): Unit = {
    println("showEuro")
  }

}


